package com.tg.paw.common.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.StringSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author Rubble
 * @date 2020/10/28
 */
@Data
@ApiModel("管理员用户")
public class UserAdmin {

    @ApiModelProperty("用户名id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long userId;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("头像")
    private String avatar;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("电话")
    private String phone;

    @ApiModelProperty(value = "类型 (0: 后台账号; 1: 店铺账号)")
    private Integer userType;

    @ApiModelProperty(value = "父账号id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long parentId;

//    @ApiModelProperty("通知消息数")
//    private int notifyCount;
//
//    @ApiModelProperty("未读消息数")
//    private int unreadCount;
}
